package com.example.mapper;

import com.example.pojo.Employee;
import org.apache.ibatis.annotations.Param;
import java.math.BigDecimal;
import java.util.List;

public interface EmployeeMapper {
    List<Employee> selectAll();
    int deleteById(Integer id);
    int insert(Employee emp);

    // 添加 @Param 注解
    int updateSalById(
            @Param("id") Integer id,
            @Param("newSal") BigDecimal newSal
    );
}